<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.util.ParamUtil"%>
<%@page import="java.util.List"%>
<%@page import="com.is.model.ParamClass"%>
<%@page import="com.is.control.ParamStuyearControl"%>
<%@page import="com.is.control.ParamClassControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../resources/css/default.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/InterStu/resources/image/favicon.ico" />
<link href="../../resources/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../resources/js/jquery-1.8.1.js"></script>
<script type="text/javascript" src="../../resources/js/jquery.artDialog.js"></script>
<script type="text/javascript" src="../../resources/js/iframeTools.js"></script>
<title>Insert title here</title>
</head>
<body>
<%
        int fromStuyear = ParamUtil.getInt(request,"fromStuyear");
        int toStuyear = ParamUtil.getInt(request,"toStuyear",ParamStuyearControl.getCurrentStuyearId());
        String fromstuyear = ParamStuyearControl.getStuyear(fromStuyear).getStuyear();
        String tostuyear = ParamStuyearControl.getStuyear(toStuyear).getStuyear();
        if(ParamClassControl.CopyClassess(fromStuyear,toStuyear)){
        	%>
    		<script  type="text/javascript">
	      		 $.dialog({
				    title: '班级设定',
				    content: '复制班级成功！<%=fromstuyear%>相关班级在<%=tostuyear%>可以进行正常教学管理。',
				    icon: 'succeed',
				    ok: function(){
	           	  			window.top.location.href="param_class_add.jsp";
				    }
				});
    		</script>
    	<%
       }
%>

</body>
</html>